package bank;

public class GiroKonto extends Konto {

	private double limit;
	
	public GiroKonto(int nummer, String inhaber) {
		super(nummer, inhaber);
	}

	public double getLimit() {
		return limit;
	}

	public void setLimit(double limit) {
		this.limit = limit;
	}

	@Override
	public boolean auszahlen(double betrag) {
		if((super.getSaldo()-betrag) < limit)
			return false;
		else{
			super.setSaldo(getSaldo()-betrag);
			return true;
		}
	}
	
	
	

}
